<%@ page import="mybatis.pojo.Grade" %>
<%@ page import="mybatis.services.GradeServerices" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2022/7/4
  Time: 17:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    Long id =Long.parseLong( request.getParameter("suBid"));
    out.print(id);
%>

<%
    List<Grade> all = GradeServerices.ME.findAll();
%>
<form action="doUpdateSub.jsp?id=<%=id%>" method="post">
    输入课程名称：<input type="text" name="subName"><br/>
    输入课程学时：<input type="number" name="classHour"><br/>
    输入年级编号：<select name="gradeId">
    <%
        for (Grade grade : all) {
    %>
    <option value="<%=grade.getId()%>"><%=grade.getGname()%></option>

    <% } %>

</select><br/>
    <button >修改信息</button>
</form>

</body>
</html>
